.features {
  --features-tab-color: #ebffff;
  --features-tab-active-color: #179b93;

  padding-top: 60px;
  padding-bottom: 60px;
}

.features__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 40px auto 32px;
  padding: 16px 0px;
  border-radius: 80px;
  background-color: #ffffff;
  box-shadow: 0px 3px 6px #0000000d;
}

.features__tabs-arrow {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  color: var(--features-tab-active-color);
  cursor: pointer;
  transition: opacity 200ms ease-in-out;
}

.features__tabs-arrow:focus {
  outline: none;
}

.features__tabs-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.features__tabs-arrow[hidden] {
  display: none;
}

.features__tab {
  flex: 0 1 auto;
  height: 44px;
  padding: 10px 24px;
  min-width: var(--features-tab-min-width, auto);
  border: none;
  border-radius: 24px;
  background-color: var(--features-tab-color);
  color: #303030;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.6s ease,
    color 0.6s ease;
}

.features__tab:focus {
  outline: none;
}

.features__tab:hover {
  background-color: #c5e6e4;
  background-color: color-mix(
    in srgb,
    var(--features-tab-active-color) 25%,
    #ffffff
  );
}

.features__tab.is-active {
  background-color: var(--features-tab-active-color);
  color: #ffffff;
  font-weight: 700;
}

.features__panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  column-gap: 32px;
  row-gap: 20px;
}

.features__panel[hidden] {
  display: none;
}

.features__card {
  height: 100%;
  padding: 25px 28px;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0px 10px 28px 0px rgba(13, 46, 36, 0.05);
}

.features__card-title {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #303030;
}

.features__card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background-color: var(--features-tab-active-color);
  border-radius: 49px;
}

.features__card-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 25px;
}

.features__card-text p {
  color: #6c757d;
}

.features__card-text p:last-child {
  margin-bottom: 0;
}

.card-grid__panel {
  margin-top: 20px;
}

.card-grid-underline {
  margin-bottom: 20px;
}

.card-grid__description {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.67 !important;
}

@media (max-width: 991px) {
  .features__tabs {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .features__panel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .features {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .features__tabs-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px auto;
  }

  .features__tabs-arrow {
    display: flex;
  }

  .features__tabs {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 20px;
    padding-right: 20px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin: 0;
    scrollbar-width: none;
  }

  .features__tabs::-webkit-scrollbar {
    display: none;
  }

  .features__tab {
    flex: 0 0 auto;
  }

  .features__panel {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }
}
